import {
    center,
    right,
    grid,
    input,
    header,
    button,
    search,
} from '@/css/VueCss.module.scss' ;

export default {
    title: '待回访',
    order: 3,
    items: [{
        region: 'center',
        class: center,
        layout: 'vertical',
        items: [{
            items: [{
                id: 'search',
                class: search,
                widget: 'search-datesearch',
                times: [{
                    label: '今日',
                    value: 'today'
                }, {
                    label: '昨日',
                    value: 'yesterday'
                },{
                    label: '近7日',
                    value: 'lately7'
                },{
                    label: '近30日',
                    value: 'lately30'
                }],
                rangeTimes: true,
                onSearch: [{
                    action:'grid-load',
                    target:'$widgets.grid',
                    params: {
                        type: 2,
                        page_size: '$widgets.grid.pageSize',
                        keywords: '$params.keywords',
                    }
                }]
            }]
        },{
            id:'grid',
            class: grid,
            widget:'grid',
            service: {
                path: 'crm/potential/record/list',
                params: {
                    type: 2,
                },
            },
            pageSize:20,
            columns:[{
                prop:'customer_uuid',
                label:'客户(公司)',
                dictionary: 'common/dictionary/customer',
                minWidth: 220
            },{
                prop:'salesman_uuid',
                label:'销售联系人',
                dictionary: 'common/dictionary/salesman',
                minWidth: 150
            },{
                prop:'contact',
                label:'客户联系人',
                minWidth: 150
            },{
                prop:'phone',
                label:'手机号码',
                minWidth: 150
            },{
                prop:'contents',
                label:'沟通内容',
                minWidth: 180
            },{
                prop:'create_time',
                label:'回访时间',
                minWidth: 180
            }],
            flex:true,
        }]
    }]
} ;